<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Mall_text.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Mall_text.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '详情配置',
                    name: 'Mall_text',
                    url: "/Texts/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {"code":"","title":"","content":"","id":"","text_Type":"","createDate":"","createID":"","modifyDate":"","creator":"","modifier":"","merchantCode":"","merchantName":""},
                editFormOptions: [[{"title":"标题","required":true,"field":"title","type":"text"},
                                 {"title":"编码","field":"code","type":"text",hidden:true},
                                 {"title":"详情类型","required":true,"field":"text_Type","type":"select","dataKey": "textType"}],
                                [{"title":"富文本内容","field":"content","type":"editor",colSize:12}]],
                searchFormFields: {"title":"","createDate":"","id":"","createID":"","modifyDate":"","creator":""},
                searchFormOptions: [[{"title":"标题","field":"title","type":"like"},{"title":"创建日期","field":"createDate","type":"datetime"}]],
                columns: [{field:'id',title:'id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'title',title:'标题',type:'string',width:220,align:'left',sortable:true},
                       {"title":"详情类型","field":"text_Type","type":"string",bind: { key: 'textTypeList', data: [] }},
                       {field:'content',title:'富文本内容',type:'string',width:90,align:'left'},
                       {field:'createDate',title:'创建日期',type:'datetime',width:120,align:'left',sortable:true},

                       //{field:'createID',title:'创建者ID',type:'int',width:120,hidden:true,align:'left'},
                       {field:'creator',title:'创建者',type:'string',width:120,align:'left'},
                       {field:'modifier',title:'修改人',type:'string',width:120,align:'left'},
                       {field:'modifyDate',title:'修改日期',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'modifyID',title:'修改ID',type:'int',width:120,hidden:true,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
